<HTML>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
 <head>
 <link type="text/css" rel="stylesheet" href="/stylesheets/landscapes/style.css" />
    <link rel="icon" type="image/ico" href="/images/favicon.ico" />
  </head>
<BODY>


<%
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    if (user != null) {
%>
<title>
 <%= user.getNickname() %> - Calendar
   </title>
<p>
	Hello, <%= user.getNickname() %> - Calendar

	
</p>
<%
    } else {
%>
<p>Hello!
Please Login with your Google Account here
<a href="<%= userService.createLoginURL(request.getRequestURI()) %>" style="color: #00a000">Login with Google</a>
</p>
<%
    }
%>
<p align = "center">
<div style="background:black" align = "center">
<iframe src="https://www.google.com/calendar/embed?title=IIIT-Delhi%20Event%20Calendar&amp;showPrint=0&amp;height=600&amp;wkst=2&amp;bgcolor=%23ffffff&amp;src=nostalgia.iiitd%40gmail.com&amp;color=%232952A3&amp;ctz=Asia%2FCalcutta" style=" border:solid 1px #777 " width="900" height="600" frameborder="0" scrolling="no"></iframe>
</div>
</p>
  </BODY>


</HTML>